<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>显示图书信息</title>
</head>
<body>
<a href="/create">新增</a>
<ul>
    {% for book in books %}
{#        <li>{{ book.btitle }}</li>#}
{#        a href是超链接,上面for循环里的books才是模板变量名，才是键#}
        <li><a href="/books/{{ book.id }}">{{ book.btitle }}</a>--<a href="/delete{{ book.id }}">删除</a></li>
    {% endfor %}
</ul>
</body>
</html>